package com.eclipse.e20200205_集合.map;


import java.util.TreeMap;

public class f_TreeMap {
	
	public static void main(String[] args) {
		
		//TreeMap会对key进行排序
		TreeMap<String,Integer> treeMap = new TreeMap<>();
		treeMap.put("b", 2);
		treeMap.put("a", 1);
		treeMap.put("c", 3);
		System.out.println(treeMap);
	}
}
